home *** CD-ROM | disk | FTP | other *** search
/ Mac Mania 5 / MacMania 5.toast / / Internet software / MacWebCam 2.4 / SampleScripts / switch logos / switchlogos.script < prev   
Text File  |  1996-08-06  |  828b  |  19 lines

  1. tell application "MacWebCam"
  2.     -- This script switches between two logos each time a picture is taken.
  3.     -- If you want to use this, change the absolute path names to match your hard drive.
  4.     -- Then set this script (text file) as the preprocess script.
  5.     
  6.     set numPics to get pictures taken of active document
  7.     -- find out if we are on picture "even" or "odd" by taking the remainder of the number of pictures taken divided by 2
  8.     if ((numPics mod 2) is equal to 1) then
  9.         -- odd picture
  10.         set file of logo of active document to "hd:Web:WebCam:switch logos:leftside.pict"
  11.         set horizontal justification of logo of active document to left
  12.     else
  13.         -- even picture
  14.         set file of logo of active document to "hd:Web:WebCam:switch logos:rightside.pict"
  15.         set horizontal justification of logo of active document to right
  16.     end if
  17.  
  18. end tell
  19.